package com.service.business.product.controller;

import com.service.business.product.controller.rep.ProductCategoryRep;
import com.service.business.product.service.ProductCategoryService;
import com.service.core.rest.BaseController;
import com.service.core.rest.response.MultiResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 商品分类
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2020-04-28 10:56:56
 */
@RestController
@RequestMapping("product-category")
public class ProductCategoryController extends BaseController {
    @Autowired
    private ProductCategoryService productCategoryService;

    @GetMapping("list-all")
    public MultiResponse<ProductCategoryRep> listAll() {
        return successQueryMultiResponse(productCategoryService.listAll());
    }

}
